<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='机构',active='agency'">
<header th:replace="comm/header::headerFragment(${title},${active})"></header>
<link th:href="@{/admin/plugins/tagsinput/jquery.tagsinput.css}" rel="stylesheet"/>
<link th:href="@{/admin/plugins/select2.dist.css/select2-bootstrap.css}" rel="stylesheet"/>
<link th:href="@{/admin/plugins/toggles/toggles.css}" rel="stylesheet"/>

<link href="//cdn.bootcss.com/multi-select/0.9.12/css/multi-select.css" rel="stylesheet"/>
<link href="//cdn.bootcss.com/select2/3.4.8/select2.min.css" rel="stylesheet"/>
<link th:href="@{/admin/plugins/md/css/style.css}" rel="stylesheet"/>
<link rel="stylesheet" th:href="@{/plugins/kkpager/kkpager_blue.css}">
<!-- editor.md -->
<style>
    #tags_tagsinput {
        background-color: #fafafa;
        border: 1px solid #eeeeee;
    }

    #tags_addTag input {
        width: 100%;
    }

    #tags_addTag {
        margin-top: -5px;
    }
</style>
<body class="fixed-left">
<div id="wrapper">
    <div th:replace="comm/header::header-body"></div>
    <div class="content-page">
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <h4 class="page-title"><a th:href="@{/agency/index}"> 机构</a>->部门设置</h4>
                        <div class="text-right">
                         <a  th:href="@{/agency/dept/create}" class="btn btn-success waves-effect waves-light "
                                        onclick="saveInfo()">
                                   	 	新增部门
                         </a>
                         </div>
                    </div>
                    <div class="col-md-12">
                        <table class="table table-striped table-bordered">
                            <thead>
                            <tr>
                                <th width="20%" class="text-center">部门</th>
                                <th width="35%" class="text-center">部门地址</th>
                                <th width="15%" class="text-center">部门电话</th>
                                <th class="text-center">排序</th>
                                <th class="text-center" width="15%">操作</th>
                            </tr>
                            </thead>
                            <tbody id="list_result">

                            </tbody>
                        </table>
                        <!-- 分页 -->
						<div id="kkpager"></div>
                    </div>
                </div>
                <div th:replace="comm/footer :: footer-content"></div>
            </div>
        </div>
    </div>
</div>
<div th:replace="comm/footer :: footer"></div>
<script type="text/javascript">
</script>
<script th:src="@{/admin/plugins/tagsinput/jquery.tagsinput.min.js}"></script>
<script th:src="@{/admin/plugins/jquery-multi-select/jquery.quicksearch.js}"></script>


<script th:src="@{//cdn.bootcss.com/multi-select/0.9.12/js/jquery.multi-select.min.js}"></script>
<script th:src="@{//cdn.bootcss.com/select2/3.4.8/select2.min.js}"></script>
<script th:src="@{//cdn.bootcss.com/jquery-toggles/2.0.4/toggles.min.js}"></script>
<script th:src="@{/plugins/kkpager/kkpager.min.js}"></script>
<script th:src="@{/js/agency/dept/list.js}"></script>
<script type="text/javascript">
    /*<![CDATA[*/
    var tale = new $.tale();
    function delPost(cid) {
        tale.alertConfirm({
            title:'确定删除该文章吗?',
            then: function () {
                tale.post({
                    url : '/admin/article/delete',
                    data: {cid: cid},
                    success: function (result) {
                        if(result && result.code == 'success'){
                            tale.alertOkAndReload('文章删除成功');
                        } else {
                            tale.alertError(result.msg || '文章删除失败');
                        }
                    }
                });
            }
        });
    }
    /*]]>*/
</script>
</body>
</html>